package com.example.day2;

public class WhileStudy {
    public static void main(String[] args) {
//        while (condition){
//
//        }
//        break

        int count = 0;
        while (true){
            System.out.printf("sadas: " + count);
            count ++;
            if (count == 10){
                break;
            }
        }


//        do{
//
//        }while (condion)

        count = 0;
        while (count < 10){
            System.out.printf("sadas: " + count);
            count ++;
        }


    }
}
